\hypertarget{class_particle_data}{
\section{ParticleData Class Reference}
\label{class_particle_data}\index{ParticleData@{ParticleData}}
}


{\ttfamily \hyperlink{class_particle_data}{ParticleData}} class is used for managing the particle effect.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_particle_data_a3e7d3178083b5ad930a1cf4d093b4654}{ParticleData} (FPtype viewRangeX, FPtype viewRangeY, QObject $\ast$parent=0)
\begin{DoxyCompactList}\small\item\em {\ttfamily \hyperlink{class_particle_data}{ParticleData}} constructor. \item\end{DoxyCompactList}\item 
void \hyperlink{class_particle_data_a6bf399a380ee5a75809e6cfa20b9565e}{addParticle} (int, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat)
\begin{DoxyCompactList}\small\item\em Adds particle effect to particle buffer. \item\end{DoxyCompactList}\item 
void \hyperlink{class_particle_data_a4e1f7f6157547599ee3654a7f36ed8cc}{addParticleBlackHole} (int, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat)
\begin{DoxyCompactList}\small\item\em Adds a particle effect for black hole. \item\end{DoxyCompactList}\item 
void \hyperlink{class_particle_data_a56080dc085293992b73147c5a1530e8e}{addParticleHyperJump} (int, GLfloat, GLfloat, GLfloat, int)
\begin{DoxyCompactList}\small\item\em Adds a particle effect for hyper jump. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_particle_data_af7997b1923aecdaacab27e1ff9b58cf6}{
QVector$<$ \hyperlink{struct_particle}{Particle} $>$ \hyperlink{class_particle_data_af7997b1923aecdaacab27e1ff9b58cf6}{particleBuffer}}
\label{class_particle_data_af7997b1923aecdaacab27e1ff9b58cf6}

\begin{DoxyCompactList}\small\item\em Buffer for storing particles (instances of {\ttfamily \hyperlink{struct_particle}{Particle}}). \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_particle_data_a2b7cb859d8128928c29d15e130375677}{
class \hyperlink{class_particle_data_a2b7cb859d8128928c29d15e130375677}{GameWidget}}
\label{class_particle_data_a2b7cb859d8128928c29d15e130375677}

\item 
\hypertarget{class_particle_data_a9ca20b077852bfc7b050d3a6a32d1a40}{
class \hyperlink{class_particle_data_a9ca20b077852bfc7b050d3a6a32d1a40}{GameEngine}}
\label{class_particle_data_a9ca20b077852bfc7b050d3a6a32d1a40}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
{\ttfamily \hyperlink{class_particle_data}{ParticleData}} class is used for managing the particle effect. \hyperlink{struct_particle}{Particle} effects are stored in the {\ttfamily \hyperlink{class_particle_data_af7997b1923aecdaacab27e1ff9b58cf6}{ParticleData::particleBuffer}} array. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_particle_data_a3e7d3178083b5ad930a1cf4d093b4654}{
\index{ParticleData@{ParticleData}!ParticleData@{ParticleData}}
\index{ParticleData@{ParticleData}!ParticleData@{ParticleData}}
\subsubsection[{ParticleData}]{\setlength{\rightskip}{0pt plus 5cm}ParticleData::ParticleData (
\begin{DoxyParamCaption}
\item[{FPtype}]{ viewRangeX, }
\item[{FPtype}]{ viewRangeY, }
\item[{QObject $\ast$}]{ parent = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}explicit\mbox{]}}}}
\label{class_particle_data_a3e7d3178083b5ad930a1cf4d093b4654}


{\ttfamily \hyperlink{class_particle_data}{ParticleData}} constructor. 

Initializes the particle buffer.


\begin{DoxyParams}{Parameters}
\item[{\em viewRangeX}]Game area view range (x-\/axis) \item[{\em viewRangeY}]Game area view range (y-\/axis) \item[{\em parent}]Parent object \end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{class_particle_data_a6bf399a380ee5a75809e6cfa20b9565e}{
\index{ParticleData@{ParticleData}!addParticle@{addParticle}}
\index{addParticle@{addParticle}!ParticleData@{ParticleData}}
\subsubsection[{addParticle}]{\setlength{\rightskip}{0pt plus 5cm}void ParticleData::addParticle (
\begin{DoxyParamCaption}
\item[{int}]{ startFrame, }
\item[{GLfloat}]{ startTime, }
\item[{GLfloat}]{ positionX, }
\item[{GLfloat}]{ positionY, }
\item[{GLfloat}]{ positionZ, }
\item[{GLfloat}]{ velocityX, }
\item[{GLfloat}]{ velocityY, }
\item[{GLfloat}]{ friction, }
\item[{GLfloat}]{ size}
\end{DoxyParamCaption}
)}}
\label{class_particle_data_a6bf399a380ee5a75809e6cfa20b9565e}


Adds particle effect to particle buffer. 


\begin{DoxyParams}{Parameters}
\item[{\em startFrame}]\hyperlink{struct_particle}{Particle} effect start frame (usually current game frame as in {\ttfamily \hyperlink{class_game_engine_a8c7ac96a2d3c7f25e37179e7b6a7513a}{GameEngine::totalFrameCounter}}). \item[{\em startTime}]\hyperlink{struct_particle}{Particle} effect start time (usually current game time as in {\ttfamily \hyperlink{class_game_engine_ad7bb8fd24f2b1c2352df9f49ccc13ff0}{GameEngine::totalTimeCounter}}). \item[{\em positionX}]X-\/coordinate for particle effect position. \item[{\em positionY}]Y-\/coordinate for particle effect position. \item[{\em positionZ}]Z-\/coordinate for particle effect position. \item[{\em velocityX}]\hyperlink{struct_particle}{Particle} effect velocity in X-\/axis. \item[{\em velocityY}]\hyperlink{struct_particle}{Particle} effect velocity in Y-\/axis. \item[{\em friction}]\hyperlink{struct_particle}{Particle} effect friction. \item[{\em size}]\hyperlink{struct_particle}{Particle} size. \end{DoxyParams}
\hypertarget{class_particle_data_a4e1f7f6157547599ee3654a7f36ed8cc}{
\index{ParticleData@{ParticleData}!addParticleBlackHole@{addParticleBlackHole}}
\index{addParticleBlackHole@{addParticleBlackHole}!ParticleData@{ParticleData}}
\subsubsection[{addParticleBlackHole}]{\setlength{\rightskip}{0pt plus 5cm}void ParticleData::addParticleBlackHole (
\begin{DoxyParamCaption}
\item[{int}]{ startFrame, }
\item[{GLfloat}]{ startTime, }
\item[{GLfloat}]{ distance, }
\item[{GLfloat}]{ angle, }
\item[{GLfloat}]{ radvel, }
\item[{GLfloat}]{ size}
\end{DoxyParamCaption}
)}}
\label{class_particle_data_a4e1f7f6157547599ee3654a7f36ed8cc}


Adds a particle effect for black hole. 


\begin{DoxyParams}{Parameters}
\item[{\em startFrame}]\hyperlink{struct_particle}{Particle} effect start frame (usually current game frame as in {\ttfamily \hyperlink{class_game_engine_a8c7ac96a2d3c7f25e37179e7b6a7513a}{GameEngine::totalFrameCounter}}). \item[{\em startTime}]\hyperlink{struct_particle}{Particle} effect start time (usually current game time as in {\ttfamily \hyperlink{class_game_engine_ad7bb8fd24f2b1c2352df9f49ccc13ff0}{GameEngine::totalTimeCounter}}). \item[{\em distance}]\hyperlink{struct_particle}{Particle} distance from black hole center. \item[{\em angle}]Angle in radians. \item[{\em radvel}]\hyperlink{struct_particle}{Particle} effect velocity. \item[{\em size}]\hyperlink{struct_particle}{Particle} size. \end{DoxyParams}
\hypertarget{class_particle_data_a56080dc085293992b73147c5a1530e8e}{
\index{ParticleData@{ParticleData}!addParticleHyperJump@{addParticleHyperJump}}
\index{addParticleHyperJump@{addParticleHyperJump}!ParticleData@{ParticleData}}
\subsubsection[{addParticleHyperJump}]{\setlength{\rightskip}{0pt plus 5cm}void ParticleData::addParticleHyperJump (
\begin{DoxyParamCaption}
\item[{int}]{ startFrame, }
\item[{GLfloat}]{ startTime, }
\item[{GLfloat}]{ angle, }
\item[{GLfloat}]{ size, }
\item[{int}]{ hyperJumpMode}
\end{DoxyParamCaption}
)}}
\label{class_particle_data_a56080dc085293992b73147c5a1530e8e}


Adds a particle effect for hyper jump. 


\begin{DoxyParams}{Parameters}
\item[{\em startFrame}]\hyperlink{struct_particle}{Particle} effect start frame (usually current game frame as in {\ttfamily \hyperlink{class_game_engine_a8c7ac96a2d3c7f25e37179e7b6a7513a}{GameEngine::totalFrameCounter}}). \item[{\em startTime}]\hyperlink{struct_particle}{Particle} effect start time (usually current game time as in {\ttfamily \hyperlink{class_game_engine_ad7bb8fd24f2b1c2352df9f49ccc13ff0}{GameEngine::totalTimeCounter}}). \item[{\em angle}]Angle in radians. \item[{\em size}]\hyperlink{struct_particle}{Particle} size. \item[{\em hyperJumpMode}]Hyper jump mode (Hyper jump in/out) \end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
\hyperlink{particledata_8h}{particledata.h}\item 
particledata.cpp\end{DoxyCompactItemize}
